package com.five.community.service;

import com.five.community.bean.Role;

import java.util.List;
import java.util.Map;

public interface RoleService {

    // 查询所有的角色和角色的权限
    List<Map<String, Object>> selectRoleAndPermissions() throws Exception;

    void insertRole(String rname, long[] pids) throws Exception;

    // 查询全部角色
    List<Role> selectAll() throws Exception;

    // 根据id查询角色信息
    Role selectById(int id) throws Exception;
}
